<?php

namespace app\admin\model\procure;

use think\Model;

/**
 * Tendersuppliers
 */
class Tendersuppliers extends Model
{
    // 表名
    protected $name = 'procure_tendersuppliers';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;


    public function tenderidTable(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\admin\model\procure\Tenders::class, 'tenderid', 'tenderid');
    }

    public function supplieridTable(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\admin\model\procure\Suppliers::class, 'supplierid', 'supplierid');
    }
}